const mongoose = require('mongoose')

// 创建用户配置数据模型
const userSchema = new mongoose.Schema({
  username: {
    type: String,
    required: true
  },

  bio: {
    type: String,
    default: null
  },
  image: {
    type: String, //头像保存地址
    default: null
  },
  following: {
    type: Boolean,
    default: false
  }
})

module.exports = userSchema
